Skip to content

fix(cli): improve --help printout by removing defunct --browser option#11914

Merged
SimenB merged 3 commits intojestjs:mainfrom
mrazauskas:fix-cli-remove-browser-option
Sep 30, 2021
Merged

fix(cli): improve --help printout by removing defunct --browser option#11914
SimenB merged 3 commits intojestjs:mainfrom
mrazauskas:fix-cli-remove-browser-option

Conversation

@mrazauskas
Copy link
Copy Markdown
Contributor

Summary

It seems like --browser flag was left by mistake in the CLI API. @SimenB Wasn’t it supposed to be remove in #9943? Or is this intentional?

The flag does nothing and is not documented. But yargs is including it in the printout of --help option. That’s misleading. This PR is an attempt to improve the printout. If the removal looks like a breaking change, it might be better to use yargs’s deprecation mechanism as an alternative.

Test plan

yarn jest --help to see that --browser is included without deprecation note.

Copy link
Copy Markdown
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops yeah, good catch!

@SimenB SimenB merged commit ba55fe7 into jestjs:main Sep 30, 2021
@mrazauskas mrazauskas deleted the fix-cli-remove-browser-option branch September 30, 2021 09:43
@github-actions
Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants